package com.jsu.springboot_medicine.service.impl;

import com.jsu.springboot_medicine.dao.CheckDao;
import com.jsu.springboot_medicine.entity.Check;
import com.jsu.springboot_medicine.service.CheckService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author js
 * @name CheckServiceImpl
 * @Date 2023/10/1 16:13
 */
@Service
public class CheckServiceImpl implements CheckService {
    @Resource
    private CheckDao CheckDao;
    @Override
    public List<Check> selectAll() {
        return CheckDao.selectAll();
    }

    @Override
    public Check selectById(int id) {
        return CheckDao.selectById(id);
    }

    @Override
    public int update(Check Check) {
        return CheckDao.update(Check);
    }

    @Override
    public int delete(int id) {
        return CheckDao.delete(id);
    }

    @Override
    public int insert(Check Check) {
        return CheckDao.insert(Check);
    }
}
